﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class ReverseText
{
    static void Main()
    {
        string text = Console.ReadLine();
        char[] textChars = text.ToCharArray();
        Array.Reverse(textChars);

        foreach (var symbol in textChars)
        {
            Console.Write(symbol);
        }
        Console.WriteLine();
    }
}
